﻿using System;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Newtonsoft.Json;
using OfficeOpenXml.Table;
using SqlSugar;

namespace NP.BPMReportPlatform.HR.Dto
{
    [ExcelExporter(Name = "HR费控系统前置审批", TableStyle = TableStyles.Light10, AutoFitAllColumn = true)]
    public class GetHRFKXTQZSPOutput
    {
        /// <summary>
        /// 流程状态
        /// </summary>
        [ExporterHeader(DisplayName = "流程状态")]
        public string OrderStatus { get; set; }

        /// <summary>
        /// 单据号
        /// </summary>
        [ExporterHeader(DisplayName = "流程编号")]
        public string InstanceNumber { get; set; }

        /// <summary>
        /// 申请时间
        /// </summary>
        [ExporterHeader(DisplayName = "申请时间")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 申请人
        /// </summary>
        [ExporterHeader(DisplayName = "申请人")]
        public string AddUserName { get; set; }

        /// <summary>
        /// 审批通过日期
        /// </summary>
        [ExporterHeader(DisplayName = "审批通过日期")]
        public string ApproveDate { get; set; }
        
        /// <summary>
        /// 单据详情链接
        /// </summary>
        [IEIgnore(IsExportIgnore = true)]
        public string Url { get; set; }

        /// <summary>
        /// 汇总金额(元)
        /// </summary>
        [ExporterHeader(DisplayName = "汇总金额(元)")]
        public string TotalCost { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [ExporterHeader(DisplayName = "序号")]
        public string SortNo { get; set; }

        /// <summary>
        /// 公司代码
        /// </summary>
        [ExporterHeader(DisplayName = "公司代码")]
        public string Factory { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [ExporterHeader(DisplayName = "公司名称")]
        public string FactoryName { get; set; }

        /// <summary>
        /// 费用编码/外沟通话术
        /// </summary>
        [ExporterHeader(DisplayName = "费用编码")]
        public string CostCode { get; set; }

        /// <summary>
        /// 费用类型
        /// </summary>
        [ExporterHeader(DisplayName = "费用类型")]
        public string CostType { get; set; }

        /// <summary>
        /// 金额（元）
        /// </summary>
        [ExporterHeader(DisplayName = "金额（元）")]
        public string Amount { get; set; }

        /// <summary>
        /// 一级审批
        /// </summary>
        [ExporterHeader(DisplayName = "一级审批")]
        public string Approver1 { get; set; }

        /// <summary>
        /// 二级审批
        /// </summary>
        [ExporterHeader(DisplayName = "二级审批")]
        public string Approver2 { get; set; }

        /// <summary>
        ///三级审批
        /// </summary>
        [ExporterHeader(DisplayName = "三级审批")]
        public string Approver3 { get; set; }

        /// <summary>
        /// 四级审批
        /// </summary>
        [ExporterHeader(DisplayName = "四级审批")]
        public string Approver4 { get; set; }


        /// <summary>
        /// 五级审批
        /// </summary>
        [ExporterHeader(DisplayName = "五级审批")]
        public string Approver5 { get; set; }

        /// <summary>
        /// 六级审批
        /// </summary>
        [ExporterHeader(DisplayName = "六级审批")]
        public string Approver6 { get; set; }
    }
}